<template>
    <div :class="['circle-wrap',state?'active':'']">

    </div>
</template>

<script>
export default {
  name: "StateCircle",
  props:{
    state:{
      type:Boolean,
      default:true
    }
  }
}
</script>

<style lang="scss" scoped>
  .circle-wrap{
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: relative;
    background-color: #b94242;
    &:after{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 1px solid #b94242;
      content: "";
      box-sizing: border-box;
      animation: aniStatusProcessing 1.2s ease-in-out infinite;
    }
    @keyframes aniStatusProcessing {
      0% {
        transform:scale(.8);

        opacity:.5;
      }
      to {
        transform:scale(2.4);
        opacity:0;
      }
    }

    &.active{
      background-color: #2d8cf0;
      &:after{
        border: 1px solid #2d8cf0;
      }
    }
  }
</style>